/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.8.8
 */

package cn.stylefeng.guns.czlm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;

/**
 * 商品类目\n\n(tb_category)
 * 
 * @author penghaiwen
 * @version 1.0.0 2019-04-29
 */
@TableName("tb_category")
public class TbCategory implements java.io.Serializable {
    /** 版本号 */
    private static final long serialVersionUID = 1L;

    /**商品表*/
    @TableField(exist = false)
    private Lists lists;

    /** id */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /** 类目名称 */
    @TableField("name")
    private String name;

    /** sortNum */
    @TableField("sort_num")
    private Integer sortNum;

    /** icon */
    @TableField("icon")
    private String icon;

    /** 上级类目ID */
    @TableField("uplevelId")
    private Integer uplevelId;

    /** 1一级类目，2二级类目 */
    @TableField("level")
    private Integer level;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Lists getLists() {
        return lists;
    }

    public void setLists(Lists lists) {
        this.lists = lists;
    }


    /**
     * 获取id
     * 
     * @return id
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置id
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取类目名称
     * 
     * @return 类目名称
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置类目名称
     * 
     * @param name
     *          类目名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取sortNum
     * 
     * @return sortNum
     */
    public Integer getSortNum() {
        return this.sortNum;
    }

    /**
     * 设置sortNum
     * 
     * @param sortNum
     */
    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    /**
     * 获取icon
     * 
     * @return icon
     */
    public String getIcon() {
        return this.icon;
    }

    /**
     * 设置icon
     * 
     * @param icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 获取上级类目ID
     * 
     * @return 上级类目ID
     */
    public Integer getUplevelId() {
        return this.uplevelId;
    }

    /**
     * 设置上级类目ID
     * 
     * @param uplevelId
     *          上级类目ID
     */
    public void setUplevelId(Integer uplevelId) {
        this.uplevelId = uplevelId;
    }

    /**
     * 获取1一级类目，2二级类目
     * 
     * @return 1一级类目
     */
    public Integer getLevel() {
        return this.level;
    }

    /**
     * 设置1一级类目，2二级类目
     * 
     * @param level
     *          1一级类目
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    public Lists getList() {
        return lists;
    }

    public void setList(Lists list) {
        this.lists = list;
    }

    @Override
    public String toString() {
        return "TbCategory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sortNum=" + sortNum +
                ", icon='" + icon + '\'' +
                ", uplevelId=" + uplevelId +
                ", level=" + level +
                ", list=" + lists +
                '}';
    }
}